<template>
  <div class="bg_view">
    <div class="cam_item" @click="goDemo1()">
      <div class="head">
        <div class="name">我是装药</div>
        <div class="btn">>服药管家主页</div>
      </div>
    </div>
  </div>
</template>

<script>

export default {
  data() {
    return {
      depts: []
    };
  },
  created() {
    console.log("H:"+history.length)
    var c = window.localStorage.getItem("count");
    if(c==null || c==''){
      window.localStorage.setItem("count",0);
    }else{
      window.localStorage.setItem("count",parseInt(c)+1);
    }
  },
  methods: {
    goDemo1() {
      // this.$router.push({
      //   path: "/demo1"
      // });

      history.go(-1)
    }
  }
};
</script>
<style scoped>
.bg_view {
  height: 100%;
  min-height: 100vh;
  background-color: #f4f8fc;
}

.cam_item {
  background: #ffffff;
  box-shadow: 0px 0px 11px 0px rgba(173, 195, 228, 0.43);
  border-radius: 6px;
  margin: 1rem;
  margin: 0.75rem auto;
  width: calc(100% - 3.75rem);
  padding: 0 0.875rem;
}

.cam_item .head {
  height: 2.9375rem;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cam_item .head .name {
  font-size: 16px;
  font-family: PingFang SC;
  font-weight: 500;
  color: #131A2A;
}

.cam_item .head .btn {
  width: 4.6875rem;
  height: 1.75rem;
  background: linear-gradient(0deg, #448eff 0%, #66a3ff 100%);
  border-radius: 3px;
  text-align: center;
  line-height: 1.75rem;
  font-size: 15px;
  font-family: PingFang SC;
  font-weight: 500;
  color: #FFFFFF;
  line-height: 24px;
}

.cam_item .line {
  width: calc(100%);
  height: 0.0625rem;
  background-color: #e7ecf5;
}

.cam_item .address {
  font-size: 14px;
  font-family: PingFang SC;
  font-weight: 500;
  color: #a4adbe;
  line-height: 20px;
  padding: 0.75rem 0;
}
</style>
